﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

using MOJsdk;

namespace MOJ
{
    /// <summary>
    /// Interaction logic for Control_Test.xaml
    /// </summary>
    public partial class Control_Test : UserControl
    {
        public Control_Test()
        {
            InitializeComponent();

            _grid.ApplyStyle("");

            btn.Click += Calculate;
        }

        private void Calculate(object sender, RoutedEventArgs e)
        {
            string[] txt = {"Option1", "Option2", "Option3"};
            int res = GlobalVars.TheHost.SelectOptions("MyOptions", txt);

            if (res == -1)
                return;

            GlobalVars.TheHost.ShowMessage(txt[res], "Result");
        }
    }
}
